Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use HTML in group descriptions and posts #4

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

thekid
Copy link
Owner

@thekid thekid commented Jan 4, 2024

This pull request makes it possible to format the text in group descriptions and posts.

  • Restrict formatting to the most commonly used: bold, italics, headings, code, block quotes
  • Cleanup and normalize pasted HTML on the client side
  • Filter transmitted HTML on the server side
  • Support links
  • Add support for numbered lists
  • Support images (see here https://web.dev/patterns/clipboard/paste-images/)

@thekid thekid added the enhancement New feature or request label Jan 4, 2024
@thekid
Copy link
Owner Author

thekid commented Jan 4, 2024

We should use the DOM HTML5 parsing and serialization as of PHP 8.4!

}

& *:not(:first-child) {
display: none;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, CSS nesting works fine in all major browsers: https://caniuse.com/?search=CSS%20nesting 😄

@thekid
Copy link
Owner Author

thekid commented Mar 11, 2024

An alternative could be to use https://editorjs.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant